<?php
/**
 * List all Contacts that have been working in the company
 * THe system will lookup in all contact if at least experience
 * is associated to the current company
 * 
 */
use Fox\Behaviors;
use Fox\Generator;
use Fox\Html\Button;
$xview =  Xview::instance();
/* @var $contact Hive\Company */
$company = $xview->component('company', 'object');
$cpid = $company->getId();

// Customizing
$customizing = Hive\Company\Customizing::instance();
$customizing->trackSummaryPage(array('mod' => 'company','act'=>'contacts','sac'=>'old'));

$cpid = $company->getId();
$header = new Fox\Html\Header\Content('contacts-all',Msg(Hive::BUNDLE,Hive::OLD_CONTACTS));

$html = '<p class="prettyprint">'.Msg(Hive::BUNDLE,Hive::OLD_CONTACTS_HELP).'</p>';
$html .= $xview->module(Generator::url('company','contacts','list',array('cpid' => $cpid,'area' => 'old')));
?>
<div id="messagesContent">
	<div><?php echo $header->render();?></div>
	<div class="contentArea">
		<div class="mbs gsl" id="contacts-container">
				<?php echo $html; ?>
		</div>
	</div>
</div>